package com.x.example.toolbar;

import com.x.example.toolbar.items.BackItem;
import com.x.example.toolbar.items.CollectItem;
import com.x.example.toolbar.items.CommentItem;
import com.x.example.toolbar.items.LikeItem;
import com.x.example.toolbar.items.ShareItem;
import com.x.example.toolbar.items.Spit15Item;
import com.x.example.toolbar.items.SpitItem;
import com.x.example.toolbar.items.TitleItem;

public class ToolbarInitializer {
    public static final String TOKEN_HOME = "home";
    public static final String TOKEN_X = "x";
    public static final String TOKEN_MESSAGE = "message";
    public static final String TOKEN_USER_CENTER = "user_center";
    public static final String TOKEN_BACK = "back";
    public static final String TOKEN_SPIT = "spit";
    public static final String TOKEN_LIKE = "like";
    public static final String TOKEN_COLLECT = "collect";
    public static final String TOKEN_SHARE = "share";
    public static final String TOKEN_COMMENT = "comment";
    public static final String TOKEN_SPIT15 = "Spit15Item";
    public static final String TOKEN_TITLE = "title";

    public static void init() {
        ToolbarRegistry.get().registerToolbarItem(TOKEN_HOME, TabItemView.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_X, TabItemView.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_MESSAGE, TabItemView.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_USER_CENTER, TabItemView.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_BACK, BackItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_SPIT, SpitItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_COLLECT, CollectItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_LIKE, LikeItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_SHARE, ShareItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_COMMENT, CommentItem.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_SPIT15, Spit15Item.class);
        ToolbarRegistry.get().registerToolbarItem(TOKEN_TITLE, TitleItem.class);
    }
}
